//
// Created by tang on 2022/1/12.
//

#ifndef DIARYTOOL_APP_CONFIG_VIEW_HPP
#define DIARYTOOL_APP_CONFIG_VIEW_HPP

#include "gui/ui_component.hpp"

struct AppConfigData;

class AppConfigView final : public UiComponent
{
public:
    AppConfigView();
    ~AppConfigView() override;

    [[nodiscard]] unsigned int Flags() const override;

    void RenderContent(ComponentFlag flag) override;

    const char* GetName(ComponentFlag flag) override;

private:
    void Menu() const;
    void Dialog() const;

    AppConfigData* d;
};

#endif //DIARYTOOL_APP_CONFIG_VIEW_HPP
